```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据库无缝迁移指南 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.8;
            color: #333;
        }
        h1, h2, h3, h4, .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .highlight {
            position: relative;
            z-index: 1;
        }
        .highlight::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30%;
            background-color: rgba(110, 142, 251, 0.2);
            z-index: -1;
            transform: scaleX(1.05);
            transform-origin: left;
        }
        .step-number {
            display: inline-block;
            width: 2.5rem;
            height: 2.5rem;
            line-height: 2.5rem;
            text-align: center;
            border-radius: 50%;
            background-color: #6e8efb;
            color: white;
            margin-right: 1rem;
            font-weight: bold;
        }
        .mermaid {
            background-color: white;
            padding: 2rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-4xl mx-auto text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6 serif">数据库无缝迁移的艺术</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90 leading-relaxed">确保数据一致性、系统可用性与业务连续性的专业指南</p>
            <div class="flex justify-center space-x-4">
                <a href="#migration-process" class="bg-white text-indigo-600 hover:bg-gray-100 px-6 py-3 rounded-full font-medium transition duration-300 inline-flex items-center">
                    <i class="fas fa-arrow-down mr-2"></i> 开始探索
                </a>
                <a href="#case-study" class="border-2 border-white text-white hover:bg-white hover:text-indigo-600 px-6 py-3 rounded-full font-medium transition duration-300 inline-flex items-center">
                    <i class="fas fa-book-open mr-2"></i> 案例分析
                </a>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <!-- Introduction -->
        <section class="mb-20">
            <div class="prose prose-lg max-w-4xl mx-auto">
                <p class="text-gray-700 leading-relaxed text-lg highlight">
                    实现数据库的无缝迁移是一项复杂的任务，需要确保在迁移过程中系统的可用性不会受到影响，同时数据的一致性和完整性得到保障。通过合理的迁移策略和工具，确保在迁移过程中系统的可用性和数据的一致性，可以顺利完成数据库的迁移任务。
                </p>
            </div>
        </section>

        <!-- Migration Process -->
        <section id="migration-process" class="mb-20">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center serif">数据库迁移全流程</h2>
            
            <!-- Visualization -->
            <div class="mb-16">
                <div class="mermaid">
                    graph TD
                    A[迁移前的准备] --> B[迁移实施]
                    B --> C[迁移后的验证]
                    A --> A1[评估现有数据库]
                    A --> A2[选择目标数据库]
                    A --> A3[制定迁移计划]
                    B --> B1[数据迁移]
                    B --> B2[应用程序配置]
                    B --> B3[数据验证]
                    C --> C1[监控和优化]
                    C --> C2[用户通知]
                </div>
            </div>

            <!-- Steps -->
            <div class="grid md:grid-cols-3 gap-8">
                <!-- Step 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <span class="step-number">1</span>
                            <h3 class="text-xl font-bold text-gray-800">迁移前的准备</h3>
                        </div>
                        <ul class="space-y-3 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>评估现有数据库：分析结构、数据量和依赖关系</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>选择合适的目标数据库</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>制定详细的迁移计划和回滚方案</span>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Step 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <span class="step-number">2</span>
                            <h3 class="text-xl font-bold text-gray-800">迁移实施</h3>
                        </div>
                        <ul class="space-y-3 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>执行全量或增量数据迁移</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>更新应用程序配置</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>进行数据一致性验证和性能测试</span>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Step 3 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <span class="step-number">3</span>
                            <h3 class="text-xl font-bold text-gray-800">迁移后工作</h3>
                        </div>
                        <ul class="space-y-3 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>持续监控和优化数据库性能</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>通知相关用户和团队</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                <span>文档更新和知识传递</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>

        <!-- Detailed Sections -->
        <section class="mb-20">
            <!-- 1. 迁移前的准备 -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6 flex items-center">
                    <i class="fas fa-clipboard-list text-indigo-500 mr-3"></i>
                    <span class="serif">1. 迁移前的准备</span>
                </h2>
                
                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">1</span>
                        评估现有数据库
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>分析数据库结构</strong>：检查当前数据库的表结构、索引、存储过程和触发器</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>评估数据量和增长</strong>：了解数据库的数据量、表的大小以及预期的增长情况</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>识别依赖关系</strong>：列出所有依赖当前数据库的应用程序和服务</span>
                        </li>
                    </ul>
                </div>

                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">2</span>
                        选择目标数据库
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>兼容性</strong>：确保目标数据库系统与现有系统兼容，或者有合适的迁移工具和转换机制</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>性能和扩展性</strong>：选择能满足未来需求的目标数据库系统</span>
                        </li>
                    </ul>
                </div>

                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">3</span>
                        制定迁移计划
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>迁移策略</strong>：选择合适的迁移策略，如全量迁移、增量迁移或双写迁移</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>时间窗口</strong>：选择对业务影响最小的迁移时间窗口</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>回滚计划</strong>：制定详细的回滚计划，以应对可能出现的问题</span>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 2. 迁移实施 -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6 flex items-center">
                    <i class="fas fa-tasks text-indigo-500 mr-3"></i>
                    <span class="serif">2. 迁移实施</span>
                </h2>
                
                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">1</span>
                        数据迁移
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>全量迁移</strong>：将现有数据库的数据迁移到目标数据库中。使用数据库迁移工具（如 <code class="bg-gray-100 px-2 py-1 rounded">mysqldump</code>、<code class="bg-gray-100 px-2 py-1 rounded">pg_dump</code>、<code class="bg-gray-100 px-2 py-1 rounded">Oracle Data Pump</code> 等）或 ETL 工具（如 Apache NiFi、Talend 等）来导出和导入数据</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>增量迁移</strong>：迁移期间的数据变化需要通过增量同步机制进行处理。使用数据库的变更数据捕获（CDC）工具或第三方数据同步工具来捕获并应用增量数据</span>
                        </li>
                    </ul>
                </div>

                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">2</span>
                        应用程序配置
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>修改配置</strong>：更新应用程序的数据库连接配置，使其指向目标数据库</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>兼容性测试</strong>：测试应用程序在新数据库上的功能，确保所有功能正常工作</span>
                        </li>
                    </ul>
                </div>

                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">3</span>
                        数据验证
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>数据一致性检查</strong>：验证迁移后的数据是否与源数据库中的数据一致。检查数据完整性、索引和约束</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>性能测试</strong>：评估目标数据库的性能，确保其满足性能要求</span>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 3. 迁移后的验证和调整 -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6 flex items-center">
                    <i class="fas fa-check-circle text-indigo-500 mr-3"></i>
                    <span class="serif">3. 迁移后的验证和调整</span>
                </h2>
                
                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">1</span>
                        监控和优化
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>监控工具</strong>：使用数据库监控工具来跟踪系统的性能和健康状态。工具如 Prometheus、Grafana、New Relic 等可以提供实时的监控数据</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>性能调整</strong>：根据实际使用情况调整数据库配置和优化查询</span>
                        </li>
                    </ul>
                </div>

                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-8 h-8 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">2</span>
                        用户通知
                    </h3>
                    <ul class="space-y-3 pl-2">
                        <li class="flex items-start">
                            <span class="text-indigo-500 mr-2">•</span>
                            <span><strong>通知用户</strong>：告知所有相关用户和团队迁移完成的情况，以及新系统的访问方式和可能的变化</span>
                        </li>
                    </ul>
                </div>
            </div>
        </section>

        <!-- Seamless Migration Strategies -->
        <section class="mb-20">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center serif">无缝迁移策略</h2>
            
            <div class="grid md:grid-cols-3 gap-8">
                <!-- Strategy 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-pen-fancy text-indigo-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">双写策略</h3>
                        </div>
                        <p class="text-gray-600">
                            在迁移期间，同时将数据写入源数据库和目标数据库。这种方法可以确保迁移期间的数据一致性，但可能需要处理数据的冲突和同步问题。
                        </p>
                    </div>
                </div>

                <!-- Strategy 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-code-branch text-indigo-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">蓝绿部署</h3>
                        </div>
                        <p class="text-gray-600">
                            将数据库迁移到目标环境（绿色环境），并在切换到目标环境之前进行全面测试。一旦测试通过，切换流量到目标环境，完成迁移。
                        </p>
                    </div>
                </div>

                <!-- Strategy 3 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-sync-alt text-indigo-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">滚动更新</h3>
                        </div>
                        <p class="text-gray-600">
                            逐步将不同部分的应用程序迁移到新数据库中，同时保持旧数据库的运行，确保每一步都能正常工作。
                        </p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Case Study -->
        <section id="case-study" class="mb-20">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center serif">案例分析：MySQL 迁移到 Amazon RDS</h2>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-8">
                    <div class="flex flex-col md:flex-row">
                        <div class="md:w-1/2 mb-6 md:mb-0 md:pr-6">
                            <h3 class="text-xl font-semibold text-gray-800 mb-4">迁移步骤概览</h3>
                            <ol class="space-y-4">
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">1</span>
                                    <span>评估现有 MySQL 数据库：了解表结构、数据量和增长情况</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">2</span>
                                    <span>选择 Amazon RDS MySQL 作为目标数据库</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">3</span>
                                    <span>制定迁移计划：选择夜间低峰期进行迁移</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">4</span>
                                    <span>使用 <code class="bg-gray-100 px-1 rounded">mysqldump</code> 工具导出数据</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">5</span>
                                    <span>通过 Amazon RDS 导入工具导入数据</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="bg-indigo-500 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">6</span>
                                    <span>更新应用程序配置指向 Amazon RDS</span>
                                </li>
                            </ol>
                        </div>
                        <div class="md:w-1/2 md:pl-6">
                            <h3 class="text-xl font-semibold text-gray-800 mb-4">关键成功因素</h3>
                            <ul class="space-y-3">
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                    <span>详细的迁移前评估和规划</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                    <span>选择合适的时间窗口减少业务影响</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                    <span>严格的数据验证流程</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                    <span>完善的回滚计划</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                                    <span>迁移后的持续监控和优化</span>
                                </li>
                            </ul>
                            
                            <div class="mt-6 p-4 bg-indigo-50 rounded-lg">
                                <h4 class="font-semibold text-indigo-700 mb-2 flex items-center">
                                    <i class="fas fa-lightbulb mr-2"></i> 专家建议
                                </h4>
                                <p class="text-indigo-600">
                                    对于大型数据库，考虑使用 AWS Database Migration Service (DMS) 进行持续数据复制，可以显著减少停机时间。
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Tools and Resources -->
        <section class="mb-20">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center serif">推荐工具与资源</h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- Migration Tools -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                            <i class="fas fa-tools text-indigo-500 mr-3"></i>
                            数据库迁移工具
                        </h3>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-database text-xs"></i>
                                </span>
                                <div>
                                    <strong>mysqldump/pg_dump</strong> - 原生数据库导出工具
                                    <div class="text-sm text-gray-500 mt-1">适用于MySQL/PostgreSQL的全量备份和迁移</div>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-cloud text-xs"></i>
                                </span>
                                <div>
                                    <strong>AWS Database Migration Service</strong> - AWS数据库迁移服务
                                    <div class="text-sm text-gray-500 mt-1">支持持续数据复制和异构数据库迁移</div>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-exchange-alt text-xs"></i>
                                </span>
                                <div>
                                    <strong>Talend/Informatica</strong> - ETL工具
                                    <div class="text-sm text-gray-500 mt-1">复杂数据转换和迁移场景</div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Monitoring Tools -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                            <i class="fas fa-chart-line text-indigo-500 mr-3"></i>
                            监控与验证工具
                        </h3>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-shield-alt text-xs"></i>
                                </span>
                                <div>
                                    <strong>Prometheus + Grafana</strong> - 监控组合
                                    <div class="text-sm text-gray-500 mt-1">实时监控数据库性能和健康状态</div>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-check-double text-xs"></i>
                                </span>
                                <div>
                                    <strong>pt-table-checksum</strong> - 数据一致性检查
                                    <div class="text-sm text-gray-500 mt-1">验证源和目标数据库的数据一致性</div>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <span class="bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                    <i class="fas fa-tachometer-alt text-xs"></i>
                                </span>
                                <div>
                                    <strong>Sysbench/HammerDB</strong> - 性能测试工具
                                    <div class="text-sm text-gray-500 mt-1">评估迁移前后数据库性能</div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-6 md:mb-0">
                    <h3 class="text-xl font-bold mb-2">技术小馆</h3>
                    <p class="text-gray-400">专业的IT技术知识与经验分享平台</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition duration-300 inline-flex items-center">
                        <i class="fas fa-external-link-alt mr-2"></i> 访问技术小馆
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400 text-sm">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: false,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```